<?php
$forum_id = $pun_user["id"];

$sql = "select * from wm_characters where character_forum_id = '$forum_id'";
$result = $db->query($sql);

$character = $db->fetch_assoc($result);

$is_new = 1;

if($db->num_rows($result) > 0) {
  $is_new = 0;
}

if($is_new) {
 header("Location: $war_http/denied.php");
 exit;
}

?>
